Q3Quaternion_MatchReflection
You can use theQ3Quaternion_MatchReflection
function to match the orientation of a quaternion.
TQ3Quaternion *Q3Quaternion_MatchReflection ( const TQ3Quaternion *q1, const TQ3Quaternion *q2, TQ3Quaternion *result);
q1
- A quaternion.
q2
- A quaternion.
result
- On exit, a quaternion that is either
q1
or the negative ofq1
, and that matches the orientation ofq2
.DESCRIPTION
TheQ3Quaternion_MatchReflection
function returns, as its function result and in theresult
parameter, a quaternion that is either identical to the quaternion specified by theq1
parameter or is the negative ofq1
, depending on whetherq1
or its negative matches the orientation of the quaternion specified by theq2
parameter.